/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Optometrist HIPAA</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S13212 (C-0-T13129-A13130-A13211-S13212-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getOptometristHIPAA()
 * @model extendedMetaData="name='OptometristHIPAA'"
 * @generated
 */
public enum OptometristHIPAA implements Enumerator {
	/**
	 * The '<em><b>152W00000N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_152W00000N_VALUE
	 * @generated
	 * @ordered
	 */
	_152W00000N(0, "_152W00000N", "152W00000N"),

	/**
	 * The '<em><b>152WC0800N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_152WC0800N_VALUE
	 * @generated
	 * @ordered
	 */
	_152WC0800N(1, "_152WC0800N", "152WC0800N"),

	/**
	 * The '<em><b>152WL0500N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_152WL0500N_VALUE
	 * @generated
	 * @ordered
	 */
	_152WL0500N(2, "_152WL0500N", "152WL0500N"),

	/**
	 * The '<em><b>152WX0102N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_152WX0102N_VALUE
	 * @generated
	 * @ordered
	 */
	_152WX0102N(3, "_152WX0102N", "152WX0102N"),

	/**
	 * The '<em><b>152WP0200N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_152WP0200N_VALUE
	 * @generated
	 * @ordered
	 */
	_152WP0200N(4, "_152WP0200N", "152WP0200N"),

	/**
	 * The '<em><b>152WS0006N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_152WS0006N_VALUE
	 * @generated
	 * @ordered
	 */
	_152WS0006N(5, "_152WS0006N", "152WS0006N"),

	/**
	 * The '<em><b>152WV0400N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_152WV0400N_VALUE
	 * @generated
	 * @ordered
	 */
	_152WV0400N(6, "_152WV0400N", "152WV0400N");

	/**
	 * The '<em><b>152W00000N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>152W00000N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_152W00000N
	 * @model literal="152W00000N"
	 * @generated
	 * @ordered
	 */
	public static final int _152W00000N_VALUE = 0;

	/**
	 * The '<em><b>152WC0800N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>152WC0800N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_152WC0800N
	 * @model literal="152WC0800N"
	 * @generated
	 * @ordered
	 */
	public static final int _152WC0800N_VALUE = 1;

	/**
	 * The '<em><b>152WL0500N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>152WL0500N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_152WL0500N
	 * @model literal="152WL0500N"
	 * @generated
	 * @ordered
	 */
	public static final int _152WL0500N_VALUE = 2;

	/**
	 * The '<em><b>152WX0102N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>152WX0102N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_152WX0102N
	 * @model literal="152WX0102N"
	 * @generated
	 * @ordered
	 */
	public static final int _152WX0102N_VALUE = 3;

	/**
	 * The '<em><b>152WP0200N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>152WP0200N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_152WP0200N
	 * @model literal="152WP0200N"
	 * @generated
	 * @ordered
	 */
	public static final int _152WP0200N_VALUE = 4;

	/**
	 * The '<em><b>152WS0006N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>152WS0006N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_152WS0006N
	 * @model literal="152WS0006N"
	 * @generated
	 * @ordered
	 */
	public static final int _152WS0006N_VALUE = 5;

	/**
	 * The '<em><b>152WV0400N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>152WV0400N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_152WV0400N
	 * @model literal="152WV0400N"
	 * @generated
	 * @ordered
	 */
	public static final int _152WV0400N_VALUE = 6;

	/**
	 * An array of all the '<em><b>Optometrist HIPAA</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final OptometristHIPAA[] VALUES_ARRAY =
		new OptometristHIPAA[] {
			_152W00000N,
			_152WC0800N,
			_152WL0500N,
			_152WX0102N,
			_152WP0200N,
			_152WS0006N,
			_152WV0400N,
		};

	/**
	 * A public read-only list of all the '<em><b>Optometrist HIPAA</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<OptometristHIPAA> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Optometrist HIPAA</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OptometristHIPAA get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			OptometristHIPAA result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Optometrist HIPAA</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OptometristHIPAA getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			OptometristHIPAA result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Optometrist HIPAA</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OptometristHIPAA get(int value) {
		switch (value) {
			case _152W00000N_VALUE: return _152W00000N;
			case _152WC0800N_VALUE: return _152WC0800N;
			case _152WL0500N_VALUE: return _152WL0500N;
			case _152WX0102N_VALUE: return _152WX0102N;
			case _152WP0200N_VALUE: return _152WP0200N;
			case _152WS0006N_VALUE: return _152WS0006N;
			case _152WV0400N_VALUE: return _152WV0400N;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private OptometristHIPAA(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //OptometristHIPAA
